<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    {#    <meta name="viewport" content="width=device-width, initial-scale=1">#}
    <title>青岛一木售后服务</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/myStyle.css') }}">
</head>
<body>
<div class="container">
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                {% if session['currentUser'] %}
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                            aria-expanded="false" aria-controls="navbar">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                {% endif %}
                <a class="navbar-brand" href="#" style="padding:8px">
                    <img class="mylogo" alt="Brand" src="{{ url_for('static', filename='img/logo.png') }}">
                </a>
            </div>
            {% if session['currentUser'] %}
                <div id="navbar" class="navbar-collapse collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                               aria-haspopup="true"
                               aria-expanded="false">反馈列表 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="/feedback_list">全部</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="/feedback_list/0">未处理</a></li>
                                <li><a href="/feedback_list/1">正在处理</a></li>
                                <li><a href="/feedback_list/2">处理完毕</a></li>
                                <li><a href="/feedback_list/3">已删除</a></li>
                            </ul>
                        </li>
                        {% if session['is_admin'] %}
                            <li><a href="/add_user">添加用户</a></li>
                        {%endif  %}
                        <li><a href="/logout">退出 - {{ session['currentUser'] }}</a></li>
                    </ul>
                </div><!--/.nav-collapse -->
            {% endif %}
        </div><!--/.container-fluid -->
    </nav>
    {% block mycontent %}{% endblock %}
</div>
{#<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>#}
<script type="text/javascript" src="{{ url_for('static', filename='js/jquery-2.1.1.min.js') }}"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>